<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="../css/admin.css" rel="stylesheet" type="text/css" />

         <script language="JavaScript" src="<c:url value='/js/jquery.js'/>"></script>
         <script type="text/javascript" src="<c:url value='/js/jquery.pagination.js'/>"></script>
		 
		 
		         <script type="text/javascript">
   	
            $(document).ready(function(){
		
		
		   });
			
				function check()
			{
			return true;
			}
			
			    </script>
			
</head>

<body>
<!--main-->

<div align="center"><font color="red">${requestScope.tip }</font></div>
<div class="bian" style="width: 100%">
			<table width="100%" height="34" border="0" cellpadding="0" cellspacing="0" bgcolor="#DEECF3">
					<tr>
						<td width="16" align="right">&nbsp;</td>
						<td width="27" align="left"><img src="<c:url value='/images/frame/san2.gif'/>" width="17" height="16" /></td>
						<td width="571" align="left"><span class="wen2">
						<c:if test="${addorupdate=='add'}">
 <c:set var="addorupdateinfo" value="小图片添加"/>
 </c:if>
 <c:if test="${addorupdate=='update'}">
 <c:set var="addorupdateinfo" value="小图片修改"/>
 </c:if>${addorupdateinfo}
						</span></td>
						<td align="center" valign="middle"></td>
					</tr>
			</table>
</div>
<div style="padding:10px;">	
<s:form id="form1" name="form1" method="post" action="smallPic_postSmallPic.do"  enctype="multipart/form-data" theme="simple">

  <table width="100%"  border="0" cellpadding="0" cellspacing="8" border-style="ridge"	bgcolor="#E8F1F7" align="center">
 <tr>
      <td height="28" colspan="7">&nbsp; </td></tr>
    <tr>
      <td width="25%" align="right">图片名称：</td>
      <td colspan="6"><s:textfield name="smallpicVO.smallpicName" required="true"/> <font color="red">*</font></td>
    </tr>
	
	 

	 

		 <c:if test="${addorupdate=='add'}">
   <tr>
      <td width="25%" align="right" height="0"   ></td>
      <td colspan="6"> <s:hidden name="smallpicVO.bigpicId"  required="true"/></td>
    </tr>
	
 </c:if>
 <c:if test="${addorupdate=='update'}">
	   <tr>
      <td width="25%" align="right">所属大图：</td>
      <td colspan="6">${smallpicVO.bigPicName } <s:hidden name="smallpicVO.bigpicId"  required="true"/></td>
    </tr>
	
	
 </c:if>
	
		
			   <tr>
      <td width="25%" align="right">左上坐标：</td>
      <td colspan="6"> X  <s:textfield name="smallpicVO.pic_x"  size="3" maxlenth="3" required="true"/> Y <s:textfield name="smallpicVO.pic_y" size="3" maxlenth="3" required="true"/></td>
    </tr>
				   <tr>
      <td width="25%" align="right">右下坐标：</td>
      <td colspan="6"> X  <s:textfield name="smallpicVO.pic_x2" size="3" maxlenth="3"  required="true"/> Y <s:textfield name="smallpicVO.pic_y2" size="3" maxlenth="3"  required="true"/></td>
    </tr>
	
	
	   <tr>
      <td align="right">是否可用：</td>
      <td colspan="6">
      	      <s:radio list="if_using" name="smallpicVO.ifEnable" />
      
      </td>     
    </tr>
	 <c:if test="${addorupdate=='add'}">
 	   <tr>
      <td width="25%" align="right" height="0"></td>
      <td colspan="6"> <s:hidden name="smallpicVO.picUrl"  required="true"/></td>
    </tr>
	
 </c:if>
 <c:if test="${addorupdate=='update'}">
	   <tr>
      <td width="25%" align="right">图片地址：</td>
      <td colspan="6">images/initpic/${smallpicVO.picUrl} <s:hidden name="smallpicVO.picUrl"  required="true"/></td>
    </tr>
	
 </c:if>
  	<tr>
			<td   align="right"><span style="color: red;">图片上传：</span></td><td  colspan="6">
					
      <s:file  name="fileUpVO.upload"  theme="simple"/>   <c:if  test="${smallpicVO.picUrl==null||smallpicVO.picUrl==''}"><font  color="#FF0000">未上传</font>
	      </c:if>
		    <c:if  test="${smallpicVO.picUrl!=null&&smallpicVO.picUrl!=''}">已上传
	      </c:if>
								  
				
								
								</td>
							</tr>
      
    
    
	
	    
  <tr>
     
      <td colspan="4" align="center" height="40"> 

		  	  <s:hidden name="smallpicVO.id" required="true"/>
    <input id="addorupdate" name="addorupdate" type="hidden" value="${addorupdate}">
	   <input type="submit"  style="margin-right:80px"  value="提 交" class="btnblue1" onClick="return check();" />

	   

   </td><td colspan="3"></td>
    </tr>
<tr>
<td colspan="7"  height="230"> </td>
</tr>
  </table>
  
</s:form>

</div>

</body>
</html>
